arr=eval(input())
ans=0
for i in arr:
    ans+=i
print(ans)